package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.CerDetaildataImportInfo;
import com.zjcode.cdcer.model.CerDetaildataImportOfficeInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface CerDetaildataImportOfficeInfoMapper {

    int batchInsert(@Param("list") List<CerDetaildataImportInfo> list);

    List<LinkedHashMap<String, Object>> getOfficePageData(@Param("pageData") PageData pageData);


    List<LinkedHashMap<String, Object>> queryAllExportData(@Param("pageData") PageData pageData);

    CerDetaildataImportOfficeInfo findDataById(@Param("id") String id);

    int updateExtFlagByCreateBy(@Param("updatedExtFlag")String updatedExtFlag,@Param("createBy")String createBy);

    List<CerDetaildataImportOfficeInfo> queryAllData();

    List<LinkedHashMap<String, Object>> countDetailOfficialData(Date time);

    List<LinkedHashMap<String, Object>> countDetailOfficialDataT2(@Param("time") Date time, @Param("cityid") String cityid);

    List<LinkedHashMap<String, Object>> detailOfficialData(@Param("time") Date time,@Param("areaName") String areaName);

    List<LinkedHashMap<String, Object>> detailOfficialDataByMonth(@Param("areaName") String areaName);

    List<LinkedHashMap<String, Object>> selectDetailOfficialForGJMod(@Param("idList") List<String> idList,
                                                                     @Param("idsData") Object idsData,
                                                                     @Param("pageData") PageData pageData);

}
